Optimal. Leaf size=435 \[ -\frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 a^2}+\frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 a^2}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}-\frac{d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{d \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 (-a)^{3/2} \sqrt{b}}-\frac{d \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 (-a)^{3/2} \sqrt{b}}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.839029, antiderivative size = 435, normalized size of antiderivative = 1., number of steps used = 22, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {5293, 3303, 3298, 3301, 5289, 5280} \[ -\frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 a^2}+\frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 a^2}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}-\frac{d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{d \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 (-a)^{3/2} \sqrt{b}}-\frac{d \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 (-a)^{3/2} \sqrt{b}}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5293
Rule 3303
Rule 3298
Rule 3301
Rule 5289
Rule 5280
Rubi steps
\begin{align*} \int \frac{\cosh (c+d x)}{x \left (a+b x^2\right )^2} \, dx &=\int \left (\frac{\cosh (c+d x)}{a^2 x}-\frac{b x \cosh (c+d x)}{a \left (a+b x^2\right )^2}-\frac{b x \cosh (c+d x)}{a^2 \left (a+b x^2\right )}\right ) \, dx\\ &=\frac{\int \frac{\cosh (c+d x)}{x} \, dx}{a^2}-\frac{b \int \frac{x \cosh (c+d x)}{a+b x^2} \, dx}{a^2}-\frac{b \int \frac{x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx}{a}\\ &=\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )}-\frac{b \int \left (-\frac{\cosh (c+d x)}{2 \sqrt{b} \left (\sqrt{-a}-\sqrt{b} x\right )}+\frac{\cosh (c+d x)}{2 \sqrt{b} \left (\sqrt{-a}+\sqrt{b} x\right )}\right ) \, dx}{a^2}-\frac{d \int \frac{\sinh (c+d x)}{a+b x^2} \, dx}{2 a}+\frac{\cosh (c) \int \frac{\cosh (d x)}{x} \, dx}{a^2}+\frac{\sinh (c) \int \frac{\sinh (d x)}{x} \, dx}{a^2}\\ &=\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}+\frac{\sqrt{b} \int \frac{\cosh (c+d x)}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 a^2}-\frac{\sqrt{b} \int \frac{\cosh (c+d x)}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 a^2}-\frac{d \int \left (\frac{\sqrt{-a} \sinh (c+d x)}{2 a \left (\sqrt{-a}-\sqrt{b} x\right )}+\frac{\sqrt{-a} \sinh (c+d x)}{2 a \left (\sqrt{-a}+\sqrt{b} x\right )}\right ) \, dx}{2 a}\\ &=\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}-\frac{d \int \frac{\sinh (c+d x)}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 (-a)^{3/2}}-\frac{d \int \frac{\sinh (c+d x)}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 (-a)^{3/2}}-\frac{\left (\sqrt{b} \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 a^2}+\frac{\left (\sqrt{b} \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 a^2}-\frac{\left (\sqrt{b} \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 a^2}-\frac{\left (\sqrt{b} \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 a^2}\\ &=\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}-\frac{\cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 a^2}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}+\frac{\sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 a^2}-\frac{\left (d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 (-a)^{3/2}}+\frac{\left (d \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 (-a)^{3/2}}-\frac{\left (d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 (-a)^{3/2}}-\frac{\left (d \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 (-a)^{3/2}}\\ &=\frac{\cosh (c+d x)}{2 a \left (a+b x^2\right )}+\frac{\cosh (c) \text{Chi}(d x)}{a^2}-\frac{\cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{\cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 a^2}-\frac{d \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right ) \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{d \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right ) \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{\sinh (c) \text{Shi}(d x)}{a^2}-\frac{d \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 (-a)^{3/2} \sqrt{b}}+\frac{\sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 a^2}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{4 (-a)^{3/2} \sqrt{b}}-\frac{\sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 a^2}\\ \end{align*}
Mathematica [C] time = 4.80435, size = 363, normalized size = 0.83 \[ \frac{4 \cosh (c) \text{Chi}(d x)+\frac{i \left (\text{Chi}\left (d \left (x+\frac{i \sqrt{a}}{\sqrt{b}}\right )\right ) \left (2 i \sqrt{b} \cosh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right )-\sqrt{a} d \sinh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right )\right )+\text{Chi}\left (d \left (x-\frac{i \sqrt{a}}{\sqrt{b}}\right )\right ) \left (\sqrt{a} d \sinh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right )+2 i \sqrt{b} \cosh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right )\right )-\text{Shi}\left (d \left (x+\frac{i \sqrt{a}}{\sqrt{b}}\right )\right ) \left (\sqrt{a} d \cosh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right )-2 i \sqrt{b} \sinh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right )\right )-\text{Shi}\left (\frac{i \sqrt{a} d}{\sqrt{b}}-d x\right ) \left (2 i \sqrt{b} \sinh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right )+\sqrt{a} d \cosh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right )\right )-\frac{2 i a \sqrt{b} \cosh (c+d x)}{a+b x^2}-4 i \sqrt{b} \sinh (c) \text{Shi}(d x)\right )}{\sqrt{b}}}{4 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.074, size = 546, normalized size = 1.3 \begin{align*}{\frac{{{\rm e}^{-dx-c}}{d}^{2}}{4\,a \left ( \left ( dx+c \right ) ^{2}b-2\, \left ( dx+c \right ) bc+a{d}^{2}+b{c}^{2} \right ) }}-{\frac{d}{8\,a}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{d}{8\,a}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{1}{4\,{a}^{2}}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ) }+{\frac{1}{4\,{a}^{2}}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ) }-{\frac{{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2\,{a}^{2}}}+{\frac{{{\rm e}^{dx+c}}{d}^{2}}{4\,a \left ( \left ( dx+c \right ) ^{2}b-2\, \left ( dx+c \right ) bc+a{d}^{2}+b{c}^{2} \right ) }}+{\frac{d}{8\,a}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}-{\frac{d}{8\,a}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{1}{4\,{a}^{2}}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ) }+{\frac{1}{4\,{a}^{2}}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ) }-{\frac{{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.29714, size = 2253, normalized size = 5.18 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh \left (d x + c\right )}{{\left (b x^{2} + a\right )}^{2} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]